<!DOCTYPE html>
<html lang="en">
  <head>
    <title>COS 音视频</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width" />
    <script src="https://cdn.jsdelivr.net/npm/hls.js@1.1.5/dist/hls.min.js"></script>
    <style>
      html, body{
        margin: 0;
        padding: 0;
        overflow: hidden;
        width: 100%;
      }
    </style>
  </head>
  <body>
    <div id="dplayer" style="width: 100%; height:450px"></div>
    <script src="https://cdn.jsdelivr.net/npm/dplayer@1.26.0/dist/DPlayer.min.js"></script>
    <script>
      const dp = new DPlayer({
        container: document.getElementById('dplayer'),
        video: {
          url: 'https://cos-video-1258344699.cos.ap-guangzhou.myqcloud.com/hls/test.m3u8',
        },
      });
    </script>
  </body>
</html>
